package com.atqinke.designpattern.creationtype.abstractfactory;

import com.atqinke.designpattern.creationtype.abstractfactory.pojo.AmericanCoffee;
import com.atqinke.designpattern.creationtype.abstractfactory.pojo.Coffee;
import com.atqinke.designpattern.creationtype.factory.pojo.MilkTea;
import com.atqinke.designpattern.creationtype.factory.pojo.Tea;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.DesignPattern.creationtype.abstractfactory
 * @Author: NieHk
 * @CreateTime: 2022-08-28  21:02
 * @Description: 抽象工厂
 * @Version: 1.0
 */
public class factory implements DessertFactory{
    @Override
    public Tea createTea() {
        return new MilkTea();
    }

    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }
}
